﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Administrators/Admins.master"
    Inherits="System.Web.Mvc.ViewPage<IEnumerable<QualificationLevel>>" %>

<%@ Import Namespace="ViewRes" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    <%:SharedStrings.Students%>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ScriptsContent" runat="server">
<script src="<%:Url.Content("~/Scripts/Diploma.js")%>" type="text/javascript"> </script>
    <script type="text/javascript">

        function addStudent() {

            openDialog('<%:Url.RouteUrl("Default", new {controller = "Students", action = "Add"})%>', '<%:AdministratorsStrings.AddStudent%>', function () {
                $("#divDialog form").attr("onSuccess", "loadActiveEntries();");
            });

        }
       
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="titletext">
        <%:SharedStrings.Students%></div>
    <div class="addlink">
        <%=Html.RouteLink(SharedStrings.Add, "Default", null,
                                             new {onclick = "addStudent();return false;"})%></div>
    <div class="addlink">
        Импортировать из файла Excel</div>
    <%
        Html.RenderPartial("~/Views/Students/AllStudentsControl.ascx", Model);%>
</asp:Content>
